package Testing;

import static org.junit.Assert.*;

import org.junit.Test;

import DBLayer.DBConnection;

/**
 * Denne klasse er oprettet for at teste forbindelsen til serveren.
 * @author Gruppe 4
 * @version 3/6 2014
 *
 */
public class DBConnectionTest
{

	/**
	 * Metoden tester om en forbindelse til serveren kan oprettes.
	 */
	@Test
	public void test()
	{
		DBConnection dbCon = DBConnection.getInstance();
		if(dbCon != null)
		{
			System.out.println("Connection to DB is ok");
		}
		else{
			fail("Can not connect to the DB");
		}
	}
}
